import request from '@/utils/request'

export function getBrandList() {
	return request({
		url: '/LedBrand/findAll',
		method: 'get'
	})
}

export function getBrand(id) {
	return request({
		url: '/LedBrand/' + id,
		method: 'get'
	})
}

export function addBrand(data) {
	return request({
		url: '/LedBrand/add',
		method: 'post',
		data
	})
}

export function updateBrand(data) {
	return request({
		url: '/LedBrand/update',
		method: 'post',
		data
	})
}

export function delBrand(id) {
	return request({
		url: '/LedBrand/delete/' + id,
		method: 'get'
	})
}
